using System;
using System.Collections.Generic;
using System.Text;

namespace XinBang.Entity
{
    public abstract class Attachment:IDomainModel
    {
        private int attid;

        public virtual int Attid
        {
            get { return attid; }
            set { attid = value; }
        }

        private string path;

        public virtual string Path
        {
            get { return path; }
            set { path = value; }
        }

        private bool isremote;

        public virtual bool IsRemote
        {
            get { return isremote; }
            set { isremote = value; }
        }
        private int width;

        public virtual int Width
        {
            get { return width; }
            set { width = value; }
        }

        private int height;

        public virtual int Height
        {
            get { return height; }
            set { height = value; }
        }

    }

    public class GoodsAttachment : Attachment
    {
        private Goods gooid;

        public virtual Goods GoodsId
        {
            get { return gooid; }
            set { gooid = value; }
        }
    }
    public class ArticleAttachment : Attachment
    {
        private Article artid;

        public virtual Article ArticleId
        {
            get { return artid; }
            set { artid = value; }
        }

    }
}
